import {defineConfig} from '@lingui/cli'
import {vueExtractor} from '@lingui/extractor-vue'
// import {defaultLocale, locales} from "./src/i18n.js";
// import babel from '@lingui/cli/api/extractors/babel';


export default defineConfig({
  locales:['zh','en','fr','ja'],
  sourceLocale: 'zh',
  catalogs: [
    {
      path: 'src/locales/{locale}/messages',
      include: [
        'src/**/*.vue',
        'src/**/*.js',
        'src/**/*.ts'
      ],
      exclude: ['**/node_modules/**']
    }
  ],
  format: 'po',
  compileNamespace: 'es',
  extractors: [
    vueExtractor,
  ],
})
